/**
 * 
 */
package com.cmsky.utils;

import junit.framework.TestCase;

/**
 * @author jandyfish
 *
 */
public class HelloJunitTest2 extends TestCase {
	private HelloJunit helloJunit = null;
	/**
	 * @param name
	 */
	public HelloJunitTest2(String name) {
		super(name);
	}

	/* (non-Javadoc)
	 * @see junit.framework.TestCase#setUp()
	 */
	protected void setUp() throws Exception {
		super.setUp();
		helloJunit = new HelloJunit();
	}

	/* (non-Javadoc)
	 * @see junit.framework.TestCase#tearDown()
	 */
	protected void tearDown() throws Exception {
		super.tearDown();
		helloJunit = null;
	}

	/**
	 * Test method for {@link com.cmsky.utils.HelloJunit#getNumber(int)}.
	 */
	public void testGetNumber() {
		assertEquals(0, helloJunit.getNumber(0));
		assertEquals(1, helloJunit.getNumber(-1));
		assertEquals(100, helloJunit.getNumber(100));
	}

}
